#!/usr/bin/python3

class SchoolMember:
    def __init__(self,name,sex,age,addr):
        self.name,self.sex,self.age,self.addr = name, sex, age, addr
    def whoisme(self):
        return(" i am {0} {1}".format(self.__class__.__name__,self.name))

class Teacher(SchoolMember):
    def __init__(self,name,sex,age,addr,cours,salary):
        super().__init__(name,sex,age,addr)
        self.cours, self.salary = cours, salary
    def print1(self):
        return("{0} cours is {1} salary is {2}".format(self.name, self.cours, self.salary))

class Stundent(SchoolMember):
    def get_next(self):
        return self.__ne
    def __init__(self,name,sex,age,addr,core,classes,ne):
        super().__init__(name,sex,age,addr)
        self.core, self.classes,self.__ne= core, classes,ne
    def print1(self):
        return("name is {}  core is  {} classes is {}".format(self.name,self.core,self.classes))

S=SchoolMember('wangtao','man',12,'hunan')
print(S.name,' ',S.sex,' ',S.age, S.addr)
print('*'*20)
T=Teacher('liqiang','woman',38,'henan','math',3545)
print(T.print1())

print('*'*20)
T=Stundent('liqiang','woman',38,'henan',98,'math','pravite')
print(T.print1())
print(T.get_next())